package com.dl.utils;

/**
 * 通用字段信息
 */
public class ConstantField {
    //登录信息
    public static final String LOGIN_INFO = "LoginInfo";

    //session缓存前缀
    public static final String SESSION_PREFIX = "shiroSession";

    //session缓存前缀
    public static final String KICK_OUT_SESSION = "kickOutSession:";


    public static final Integer NO_LOGIN_CODE = 0;
    public static final String NO_LOGIN_MESSAGE = "没有登录，请先登录";

    public static final Integer LOGIN_SUCCESS_CODE = 1;
    public static final String LOGIN_SUCCESS_MESSAGE = "登录成功";

    public static final Integer LOGIN_FAILURE_CODE = 2;
    public static final String LOGIN_FAILURE_MESSAGE = "登录失败";

    public static final Integer NO_PERMS_CODE = 3;
    public static final String NO_PERMS_MESSAGE = "用户权限不足";

    public static final Integer NO_ROLE_CODE = 4;
    public static final String NO_ROLE_MESSAGE = "用户角色不符";

}
